import { createRouter, createWebHashHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
const routers: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'login',
    component: () => import('../pages/login.vue')
  },
  {
    path: '/index',
    name: 'home',
    component: () => import('../pages/home.vue')
  }
]
const router = createRouter({
  routes: routers,
  history: createWebHashHistory()
})
export default router
